const getters = {
    sidebar: state => state.app.sidebar,
    device: state => state.app.device,
    token: state => state.user.token, // 在根级的getters上 开发子模块的属性给别人看 给别人用
    name: state => state.user.UserInfo.username, //看接口文档
    userId: state => state.user.UserInfo.userId, // 建立用户id的映射
    staffPhoto: state => state.user.UserInfo.staffPhoto, // 建立用户id的映射
    companyId: state => state.user.UserInfo.companyId, // 建立用户id的映射
    routes: state => state.permission.routes // 建立用户id的映射
}
export default getters